package com.zxx.ssm.model.convertor;

import com.zxx.ssm.util.DateUtils;

public class StuAvaTimeConvertor {

    public static Integer convToTimeblock(String startTime){
        String classStartTime =  DateUtils.curTimeStr4(startTime);
        Integer id = 0;
        if("01:00".equals(classStartTime))
            id = 1;
        else if("02:00".equals(classStartTime))
            id = 2;
        else if("03:00".equals(classStartTime))
            id = 3;
        else if("04:00".equals(classStartTime))
            id = 4;
        else
            id = 5;
        return id;
    }
}
